package cn.edu.cqut.ex2.test2;

public class Family {
    TV homeTv;
    void buyTv(TV ty)
    {
        homeTv=new TV();
        homeTv=ty;
    }
    void remoteControl(int m)
    {
        homeTv.setChannel(m);
    }
    void seeTV()
    {

        homeTv.showProgram();
    }
}
